import type { loginFormData, sysResponse } from '@/api/user/type.ts'
import type { sysAuthToken } from './type.ts'
import request from '@/utils/request.ts'





enum API {
  LOGIN_URL = '/sys/api/auth/doLogin',
}

//登录接口
export const reqLogin = (data: loginFormData) =>
  request.post<loginFormData, sysResponse<sysAuthToken>>(API.LOGIN_URL, data)
